import { request } from "@/api";
import { API } from "@/api/modules/dwh/typings";

/** deleteUserTableData POST /simpleUserTableData/deleteUserTableData */
export async function deleteUserTableDataUsingPOST(body: API.DeleteUserTableDataParam, options?: { [key: string]: any }) {
  return request<API.PlainResultboolean>("/simpleUserTableData/deleteUserTableData", {
    method: "POST",
    headers: {
      "Content-Type": "application/json"
    },
    data: body,
    ...(options || {})
  });
}

/** pageUserTableData POST /simpleUserTableData/pageUserTableData */
export async function pageUserTableDataUsingPOST(body: API.PageRequestUserTableDataParam, options?: { [key: string]: any }) {
  return request<API.PageResultPageUserTableDataVo>("/simpleUserTableData/pageUserTableData", {
    method: "POST",
    headers: {
      "Content-Type": "application/json"
    },
    data: body,
    ...(options || {})
  });
}

/** queryAggregate POST /simpleUserTableData/queryAggregate */
export async function queryAggregateUsingPOST(body: API.UserTableDataParam, options?: { [key: string]: any }) {
  return request<API.ListResultUserTableDataVo>("/simpleUserTableData/queryAggregate", {
    method: "POST",
    headers: {
      "Content-Type": "application/json"
    },
    data: body,
    ...(options || {})
  });
}

/** saveUserTableData POST /simpleUserTableData/saveUserTableData */
export async function saveUserTableDataUsingPOST(body: API.SaveUserTableDataParam, options?: { [key: string]: any }) {
  return request<API.PlainResultboolean>("/simpleUserTableData/saveUserTableData", {
    method: "POST",
    headers: {
      "Content-Type": "application/json"
    },
    data: body,
    ...(options || {})
  });
}
